<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .box {
            width: 260px;
            height: 200px;
            background-color: aqua;
            overflow: hidden;
            margin: 50px auto;
        }

        .box img {
            /* 初始值 */
            /* transform: scale(1); */
            /* 过渡效果 */
            transition: all 1s;
        }

        .box:hover img {
            /* transform变换 scale缩放---*/
            /* transform: scale(0.5); */
            transform: scale(2);
        }
    </style>
</head>

<body>
    <div class="box">
        <img src="https://pic4.t8tcdn.com/live/day_220113/20220113_90f7cae67dce12a691a8VP52M8OQZ10H_335x228M.jpg"
            alt="">
    </div>

</body>

</html>